package com.apifamily.project.service;

import com.apifamily.project.model.entity.UserInterfaceInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author asus
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2024-02-28 14:19:07
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    /**
     * 校验
     * @param userInterfaceInfo
     * @param b
     */
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean b);

    /**
     * 调用接口统计次数
     * @param interfaceInfoId 接口ID
     * @param userId 调用者ID
     * @return
     */
    boolean invokeCount(long interfaceInfoId,long userId);
}
